<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Community
 *
 * @ORM\Table(name="community", options={"comment":"社区表"})
 * @ORM\Entity()
 */
class Community
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var Area
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\Area", inversedBy="id")
     * @ORM\JoinColumn(name="city_id", referencedColumnName="id")
     */
    private $city;
    
    /**
     * @var int
     *
     * @ORM\Column(name="sort_order", type="integer", nullable=true, options={"comment"="排序的序号", "default"=0})
     */
    private $sortOrder;
    
    /**
     * @var string
     *
     * @ORM\Column(name="title", type="string", length=45, options={"comment":"标题"})
     */
    private $title;
    
    /**
     * @var string
     *
     * @ORM\Column(name="thumb", type="string", length=255, nullable=true, options={"comment":"缩略图"})
     */
    private $thumb;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"更新时间"})
     */
    private $updatedAt;
}
